package com.pktechan.api.dao;

import com.pktechan.api.base.BaseMapper;
import com.pktechan.api.entity.TradeOrderDetail;
import com.pktechan.api.vo.TradeOrderDetailVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("tradeOrderDetailMapper")
public interface TradeOrderDetailMapper extends BaseMapper {
    /**
     * 根据订单id获取订单详情集合
     *
     * @param tradeOrderId
     * @return
     */
    List<TradeOrderDetailVO> getTradeOrderDetailByOrderId(Integer tradeOrderId);

    /**
     * 根据订单ID查询 21-注册VIP 22-注册配送商类别的订单明细
     *
     * @param tradeOrderId
     * @return
     */
    TradeOrderDetail getRegisterOrderDetail(Integer tradeOrderId);
    /**
     * 查询订单积分运费详情
     * @param tradeOrderId
     * @return
     */
    TradeOrderDetailVO getOrderDetailById(Integer tradeOrderId);


    Integer getOrderVipRank(Integer orderId);

}
